package com.example.libo.huihui.activity;

import android.content.Intent;
import android.os.CountDownTimer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.libo.huihui.R;

public class AdvertiseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_advertise);

        init();
    }

    private void init() {
        new CountDownTimer(1000,1000){
            @Override
            public void onTick(long l) {
            }
            @Override
            public void onFinish() {
                startActivity(new Intent(AdvertiseActivity.this,MainActivity.class));
                finish();
            }
        }.start();
    }
}
